@echo off
setlocal
pushd %~dp0

rem need mingw64 in PATH

@echo on
x86_64-w64-mingw32-as --64 -O2 -march=generic64+avx+fma -msyntax=intel -o vec_x64.obj vec_x64.s
x86_64-w64-mingw32-ld -b pe-x86-64 --subsystem windows --dll -e 0 -s -o vec_x64.dll vec_x64.obj
@echo off

pause
